package com.xquant.trade.trade.entity;

import com.xquant.common.core.annotation.Excel;

import java.math.BigDecimal;

/**
 * @author cloud
 * @version 1.0
 * @description: 二元期权excel导入实体类
 * @date 2022/4/18 13:39
 */
public class DigitalImportDto extends OptionTradeImportDto{

    @Excel(name = "涨跌类型",limitWords = "Put,Call")
    private String optionType;

    @Excel(name = "行权价比例(%)",NUMBER = true)
    private BigDecimal strikePercentage = BigDecimal.ZERO;

    @Excel(name = "行权价(元)",NUMBER = true)
    private BigDecimal strike = BigDecimal.ZERO;

    @Excel(name = "行权收益(%)",NUMBER = true)
    private BigDecimal paymentAmountPecentage = BigDecimal.ZERO;

    @Excel(name = "收益金额(元)",NUMBER = true)
    private BigDecimal paymentAmount = BigDecimal.ZERO;

    @Excel(name = "计息基准")
    private String daycounter;

    private String calendar;

//    @Excel(name = "固定利率")
    private BigDecimal fixedRate;

    public String getCalendar() {
        return calendar;
    }

    public void setCalendar(String calendar) {
        this.calendar = calendar;
    }

    public String getOptionType() {
        return optionType;
    }

    public void setOptionType(String optionType) {
        this.optionType = optionType;
    }

    public BigDecimal getStrikePercentage() {
        return strikePercentage;
    }

    public void setStrikePercentage(BigDecimal strikePercentage) {
        this.strikePercentage = strikePercentage;
    }

    public BigDecimal getStrike() {
        return strike;
    }

    public void setStrike(BigDecimal strike) {
        this.strike = strike;
    }

    public BigDecimal getPaymentAmountPecentage() {
        return paymentAmountPecentage;
    }

    public void setPaymentAmountPecentage(BigDecimal paymentAmountPecentage) {
        this.paymentAmountPecentage = paymentAmountPecentage;
    }

    public BigDecimal getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(BigDecimal paymentAmount) {
        this.paymentAmount = paymentAmount;
    }

    public String getDaycounter() {
        return daycounter;
    }

    public void setDaycounter(String daycounter) {
        this.daycounter = daycounter;
    }

    public BigDecimal getFixedRate() {
        return fixedRate;
    }

    public void setFixedRate(BigDecimal fixedRate) {
        this.fixedRate = fixedRate;
    }

    @Override
    public String toString() {
        return  super.toString() +
                "DigitalImportDto{" +
                "strikePercentage='" + strikePercentage + '\'' +
                ", strike='" + strike + '\'' +
                ", paymentAmountPercentage='" + paymentAmountPecentage + '\'' +
                ", paymentAmount='" + paymentAmount + '\'' +
                ", daycounter='" + daycounter + '\'' +
                ", fixedRate='" + fixedRate + '\'' +
                '}';
    }
}
